Skip to main content
Version: 5.0.x {nightly}

Ain

info

All here listed variables are located in folder /common.

info

This documentation is valid only for the SL controller, other controllers do not have this functionality.

note

Difference between GPIO and AIN:

  • GPIO - usual reading voltage is 0-10V, it can measure pulses (PAS, speed sensor)
  • Ain - usual reading voltage is 0-100V

States

ain [10mV]

Reading of AIN inputs.

din

Digital reprezentation of the AIN inputs. The treshold for logic 1 is set by parameter adin_thr.

vspl [mV]

Internal voltage of power supply for amp board.


Parameters

adin_thr [10mV]

When you are reading digital value (din) from ain input on SL controller. This is the treshold for converting analog value on ain to digital value.

pupd

Controll pull-up or pull-dn resistors on ain inputs on SL controller.

pupd valueDescription
0floating (~47k pull-dn)
1pull-up (~100k pull-up)
2pull-down (~32k pull-dn)